<template>
  <div class="all-style-bgc">
    <div class="container">
      <ul class="libox">
        <li v-for="item in list" :key="item" @click="GoDetailfxfk(item.noticeId)">
          <span>{{item.noticeTitle}}</span>
          <span>{{item.createTime}}</span>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
import { getequipmentinfo, noticelist } from "@/api/api.js";
export default {
  data() {
    return {
      ClassRoonBox: {},
      info: {},
      list:[]
    };
  },
  created() {
    this.getnoticelist(this.$route.query.type);
  },
  methods: {
          GoDetailfxfk(noticeId) {

      this.$router.push({
        name: "detail",
        query: {
          noticeId: noticeId,
        },
      });
    },
    /**
     * 获取新闻通知列表
     */
    getnoticelist(type) {
      let data = {
        noticeType: type,
      };
      noticelist(data).then((res) => {
        // console.log(res);
        if (res.code == 200) {
          console.log(res);
          this.list=res.data.rows
        }
      });
    },
    getinfo(ldId) {
      let data = {
        ldId,
      };
      getequipmentinfo(data).then((res) => {
        console.log(res);
        this.info = res.data;
      });
    },
  },
  computed: {},


};
</script>

<style lang="less" scoped>
.libox{
    margin-top: 10px;
    background-color: #ffffff;
    padding: 10px;
}
.libox li{
    height: 40px;
    line-height: 40px;
    display: flex;
    margin-bottom: 10px;
    justify-content: space-between;
}
.container {
  width: 1200px;
  margin: 0 auto;
}

/*副导航兰*/
.title-tab {
  font-size: 14px;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: rgba(102, 102, 102, 1);
  line-height: 54px;
  cursor: pointer;
}

.red {
  color: red;
}

/*问卷调查正文*/
.text {
  background-color: white;
  padding: 44px 60px 121px 60px;
  margin: 0 auto;
}

.text h1 {
  font-size: 28px;
  font-family: PingFangSC-Medium, PingFang SC;
  font-weight: 500;
  color: rgba(51, 51, 51, 1);
  line-height: 56px;
  text-align: center;
}

.text h2 {
  font-size: 16px;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: rgba(153, 153, 153, 1);
  line-height: 44px;
  text-align: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 15px;
}

.text h3 {
  font-size: 16px;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: rgba(51, 51, 51, 1);
  line-height: 32px;
  margin-bottom: 30px;
}

/*静态页面样式 */
.PIC-BOX {
  display: flex;
  justify-content: center;
}

.from-box {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;

  .mg-16 {
    margin: 0px 16px;
    height: 30px;
    text-align: center;
  }
}
</style>
